# -*- coding: utf-8 -*-
from dwjjCoreClientScripts.common import consts, logger
from dwjjCoreClientScripts.module import playerModule, worldModule

import mod.client.extraClientApi as clientApi

ClientSystem = clientApi.GetClientSystemCls()


class ClientSys(ClientSystem):

    def __init__(self, namespace, systemName):
        logger.Suc("==== [" + consts.ClientSystemName + "] enable ====")
        super(ClientSys, self).__init__(namespace, systemName)
        self.Init()
        self.SetListener()

    def Destroy(self):
        logger.Suc("==== [" + consts.ClientSystemName + "] disable ====")

    def Init(self):
        self.localPlayerId = clientApi.GetLocalPlayerId()
        self.playerModule = playerModule.PlayerModule(self)
        self.worldModule = worldModule.WorldModule(self)

    def SetListener(self):
        pass
